package com.nyist.myhandler;


import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.nyist.pojo.User;
import com.nyist.result.CommonResult;

/**
 * 定义可以全局使用
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException e){
        return new CommonResult("200","按用户自定义,Global,handlerException ",new User(11,"【handlerException】按用户自定义",33));
    }

    public static CommonResult handlerException2(BlockException e){
        return new CommonResult("200","按用户自定义,Global,handlerException2",new User(22,"【handlerException2】按用户自定义",33));
    }
}
